package org.fing.edu.uy.esbadp.core.compare.wsdl;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

import javax.xml.namespace.QName;


public class WsdlDiff implements Serializable {
    
	private static final long serialVersionUID = 1L;

	private List<OperationDiff> operations;
    private QName nameSpace;
    
    public WsdlDiff(){
        this.operations = new LinkedList<OperationDiff>();
    }

    public List<OperationDiff> getOperations() {
        return operations;
    }

    public void setOperations(List<OperationDiff> operations) {
        this.operations = operations;
    }

    public void addOperation(OperationDiff operation) {
        this.operations.add(operation);
    }

    public QName getNameSpace() {
		return nameSpace;
	}

	public void setNameSpace(QName nameSpace) {
		this.nameSpace = nameSpace;
	}

	public void printDiff() {
	    for(OperationDiff opDiff : this.getOperations()){
	        opDiff.printDiff();
	    }
    }

}
